/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MathLib.Geometry;

import java.io.BufferedOutputStream;

/**
 *
 * @author mark_o
 */
public class Circle implements IFigure {

    public String name = "";
    protected Point2DDouble center;
    protected double R;
    protected int n=100;

    public double getR() {
        return R;
    }

    public void setR(double R) {
        this.R = R;
    }
    public double getN() {
        return n;
    }

    public void setN(int N) {
        this.n = N;
    }

    public Point2DDouble getCenter() {
        return center;
    }

    public void setCenter(Point2DDouble center) {
        this.center = center;
    }

    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }


    public Circle(Point2DDouble center, double R) {
        this.center = center;
        this.R = R;
    }
    

    public boolean Include(Point2DDouble x) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    public void printToFile(BufferedOutputStream out) {
        GPolygon gp = new GPolygon(n, center, R);
        gp.printToFile(out);
    }

    public void printToFileQuad(BufferedOutputStream out) {
        GPolygon gp = new GPolygon(n, center, R);
        gp.printToFileQuad(out);
    }
    
}
